package com.longe.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.longe.common.Result;
import com.longe.entity.User;
import org.springframework.web.multipart.MultipartFile;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author longe
 * @since 2020-05-23
 */
public interface UserService extends IService<User> {

    Result<Object> register(User user);

    Result<User> login(User user);

    Result<User> upload(MultipartFile file, Integer userId);

    Result<User> updateNickname(User user);

    Result<User> findByUsername(User user);
}
